/*
 * @Description: 首页入口
 * @Author: fxg
 * @Date: 2020-07-01 14:36:58
 * @LastEditors: wangwangwang
 * @LastEditTime: 2020-12-02 09:26:06
 */
import request from '@/utils/request'

// 获取数据字典
export function saveOrUpdate(data) {
  return request({
    url: '/base/system/index/page/save_or_update',
    method: 'post',
    data
  })
}
export function getInfo(params) {
  return request({
    url: '/base/system/index/page/get_info',
    method: 'get',
    params
  })
}
/**获取通知公告*/
export function indexquery_page(data) {
  return request({
    url: '/base/system/notice/index/query_page',
    method: 'post',
    data
  })
}
/**获取待办任务*/
export function backlogQueryPage(data) {
  return request({
    url: '/workflow/system/sign/task/center/backlogQueryPage',
    method: 'post',
    data
  })
}
/**获取跟踪事项*/
export function tailAfterTaskQueryPage(data) {
  return request({
    url: '/workflow/system/sign/task/center/tailAfterTaskQueryPage',
    method: 'post',
    data
  })
}

/**获取试验人*/
export function getUsetListByPermission(params) {
    return request({
      url: '/base/system/user/getUsetListByPermission',
      method: 'get',
      params
    })
  }

  /**获取快检获取检测项目*/
export function getDetailTesItems(params) {
    return request({
      url: '/icps/system/sign/intelligent/detectionValue/getDetailTesItems',
      method: 'get',
      params
    })
  }

   /**获取检验结果*/
export function countResult(data) {
    return request({
      url: '/icps/system/sign/intelligent/detectionValue/countResult',
      method: 'post',
      data
    })
  }


/**保存检验结果*/
export function saveResul(data) {
    return request({
        url: '/icps/system/sign/intelligent/detectionValue/saveResult',
        method: 'post',
        data
    })
}

/**临时保存检验结果*/
export function saveOrupdate(data) {
    return request({
        url: '/icps/system/sign/intelligent/detectionValue/saveOrupdate',
        method: 'post',
        data
    })
}

/**非快检获取默认检测数据*/
export function getDefaultData(params) {
    return request({
        url: '/icps/system/sign/intelligent/detectionValue/getDefaultData',
        method: 'get',
        params
    })
}

/**非快检获取保存的检测数据*/
export function getDetail(data) {
    return request({
        url: '/icps/system/sign/intelligent/detectionValue/getDetail',
        method: 'post',
        data
    })
}


